#include "WebKit.h"
#include "WebPage.h"
#include "WebElement.h"
#include <stdio.h>

#include "jd.h"
#include "qunar.h"
#include "ctrip.h"
#include "jiuxian.h"
#include "download.h"

using namespace SpiderWebKitClient;
using namespace std;

int main(int argc, char* argv[])
{
    if (argc < 2) {
        printf("Please input zookeeper server host.\n");
        return -1;
    }

    GlobalConfig *config = GlobalConfig::instance();
    config->connect(argv[1]);

    //collectJD();
    //collectJDThread();
    //collectQuNarMenpiao();
	//collectCtrip();
	//collectJiuxian();
    //collectCtripTieyou();
    downloadTest2();
    //selectTest();

    return 0;
}
